package cn.stylefeng.guns.config;

import cn.stylefeng.guns.modular.hp.servlet.DownloadFileServlet;
import org.springframework.boot.web.servlet.ServletRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *
 * @author xingzq <250863062@qq.com>
 * @date 2019/5/30
 */
@Configuration
public class DownloadConfig {

    @Bean
    public ServletRegistrationBean DownloadFileServlet() {
        return new ServletRegistrationBean(new DownloadFileServlet(), "/download");
    }
}
